package com.eight.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author 郭坤
 * @since 2023-02-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="tbCompany", description="租车公司信息实体类")
@TableName(value = "tb_company")
public class TbCompany implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @TableField(value = "id")
    private Integer id;

    @ApiModelProperty(value = "公司名称")
    @TableField(value = "cname")
    private String cname;

    @ApiModelProperty(value = "联系人")
    @TableField(value = "coontacts")
    private String coontacts;

    @ApiModelProperty(value = "电话")
    @TableField(value = "phonenum")
    private String phonenum;

    @ApiModelProperty(value = "固定电话")
    @TableField(value = "fixzd_num")
    private String fixzdNum;

    @ApiModelProperty(value = "业务类型(自驾长包，代驾长包，自驾零单，代驾零单，其他)")
    @TableField(value = "type")
    private String type;

    @ApiModelProperty(value = "租赁时间（一月以内，一月到一年，一年。。。五年以上）")
    @TableField(value = "lease_time")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String leaseTime;

    @ApiModelProperty(value = "城市")
    @TableField(value = "city")
    private String city;

    @ApiModelProperty(value = "邮箱")
    @TableField(value = "email")
    private String email;


}
